home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
video
/
pictetri.src
/
pictetri
/
pictetris-src
/
Makefile
< prev
next >
Wrap
Makefile
|
1996-01-28
|
1KB
|
48 lines
# Makefile for "tt" - Tetris for Terminals (ie. not just workstations)
# ====================================================================
SOURCES = pictetris.c utils.c screen.c pieces.c game.c
HEADERS = pictetris.h utils.h screen.h pieces.h game.h
OBJECTS = pictetris.o utils.o screen.o pieces.o game.o
CC = gcc
LDFLAGS = -s
CFLAGS = -O2
LINTFLAGS = -abh -DLINT
LIBRARIES = -lj -lvga -lvgagl
TIDYUP = | egrep -v 'possible pointer alignment problem' \
| egrep -v 'long assignment may lose accuracy'
# ---------------------------------------------------------------------------
all : $(OBJECTS)
$(CC) $(LDFLAGS) $(CFLAGS) $(OBJECTS) -o pictetris $(LIBRARIES)
pictetrisl :
lint $(LINTFLAGS) $(SOURCES) $(TIDYUP)
lint :
lint $(LINTFLAGS) $(SOURCES)
tags :
etags *.[ch]
clean :
rm -f *.o pictetris a.out core
# --------------------------------------------------------------------------
include jlib/source/makefile
pictetris.o : libj.a pictetris.c pictetris.h utils.h screen.h game.h
utils.o : libj.a utils.c utils.h pictetris.h screen.h
screen.o : libj.a screen.c screen.h pictetris.h pieces.h utils.h
pieces.o : libj.a pieces.c pieces.h pictetris.h
game.o : libj.a game.c game.h pictetris.h screen.h pieces.h utils.h
# --------------------------------------------------------------------------